package com.spider.admin.store.primary.model;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;

@Getter
@Setter
@Accessors(chain = true)
@Entity
@Data

public class ClientTenantInfo {
    @Id
    private String clientId;
    private String clientKey;
    private String clientName;
    private String tenantKey;
    private String tenantName;
    private boolean managerClient=false;

    public String toString(){
        return JSONObject.toJSONStringWithDateFormat(this,"yyyy-MM-dd HH:mm:ss",SerializerFeature.DisableCircularReferenceDetect);
    }
}
